package com.hair.logy.core.service;

import com.hair.logy.core.model.HairCard;
import com.hair.logy.core.model.HairCardInfo;
import com.hair.logy.core.utils.BusinessException;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.List;

public interface HairCardService {
    void generateQrcode(Integer number ,HttpServletResponse httpServletResponse) throws Exception;

    HairCardInfo listHairCard(Integer start, Integer end, String cardNo);

    void register(HairCard hairCard) throws BusinessException;

    HairCard activateHairCard(Long id) throws BusinessException;

    void downLoadHairFile(String cardNo, HttpServletResponse response);
}
